import Cookies from 'js-cookie'

const TokenKey = 'Token'
const UserId = 'UserId'
const StoreCode = 'StoreCode'
const RoleId = 'RoleId'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getsUserId() {
  return Cookies.get(UserId)
}
export function setUserId(userId) {
  return Cookies.set(UserId, userId)
}

export function removeUserId() {
  return Cookies.remove(UserId)
}

export function getStoreCode() {
  return Cookies.get(StoreCode)
}
export function setStoreCode(storeCoding) {
  return Cookies.set(StoreCode, storeCoding)
}

export function removeStoreCode() {
  return Cookies.remove(StoreCode)
}

export function getStoreRoleId() {
  return Cookies.get(RoleId)
}
export function setStoreRoleId(StoreRoleId) {
  return Cookies.set(RoleId, StoreRoleId)
}

export function removeStoreRoleId() {
  return Cookies.remove(RoleId)
}
